interp: add new ini setting 'DISABLE_AUTO_G54_ON_PROGSTOP'#4093
Open
Sigma1912 wants to merge 1 commit into
Open
interp: add new ini setting 'DISABLE_AUTO_G54_ON_PROGSTOP'#4093Sigma1912 wants to merge 1 commit into
Sigma1912 wants to merge 1 commit into
Conversation
BsAtHome
reviewed
May 31, 2026
Contributor
|
Can I ask you add it in to pncconf? here: add: |
Contributor
|
I tested main functionality of this PR in Gmoccapy. It works. |
42c29ac to
93791ad
Compare
Contributor
Author
|
@zz912 |
BsAtHome
reviewed
Jun 1, 2026
Comment on lines
+235
to
+237
| print("# Set 'DISABLE_AUTO_G54_ON_PROGSTOP = 1' to disable", file=file) | ||
| print("# automatic resetting of the active WCS to 'G54' on M2,M30,M99", file=file) | ||
| print("DISABLE_AUTO_G54_ON_PROGSTOP = 0", file=file) |
Contributor
There was a problem hiding this comment.
Is this supposed to be added when the frontend is gmoccapy or always (like the indent now does)?
It is hard to see how @zz912 indented the lines in the comment and it is a bit confusing how they are added to understand where they belong.
Contributor
Author
There was a problem hiding this comment.
moved those lines to before the ui specific section
Contributor
Author
|
@zz912 could you please clarify whether your requested addition to pncconf was for gmoccapy only or for all guis |
Contributor
|
I want it for all GUIs. I made wrong numbers of spaces. |
Adding this to the ini file will disable the automatic resetting of the current WCS to G54 on program stop (M2/M30/M99): [RS274NGC] DISABLE_AUTO_G54_ON_PROGSTOP = 1 Note: DISABLE_AUTO_G54_ON_PROGSTOP defaults to '0' so this modification of M2,M30 and M99 behavior is opt-in and default behavior is unchanged.
93791ad to
854baf5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As requested here:
https://forum.linuxcnc.org/38-general-linuxcnc-questions/58821-how-to-remove-automatic-g54-after-m2-m30#346816
Adds a new ini file setting to disable the automatic resetting of the current WCS to G54 on program stop (M2/M30/M99):
[RS274NGC]
DISABLE_AUTO_G54_ON_PROGSTOP = 1
Note:
DISABLE_AUTO_G54_ON_PROGSTOP defaults to '0' so this modification of M2,M30 and M99 behavior is opt-in and default behavior is unchanged.